<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddRiskRuleAliTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('risk_rule_ali', function (Blueprint $table) {
            $table->string('money')->default('')->comment('金额限制');
            $table->string('age')->default('')->comment('年龄限制');
            $table->text('ultimately')->nullable()->comment('最终综合条件');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('risk_rule_ali', function (Blueprint $table) {
            $table->dropColumn(['money','age','ultimately']);
        });
    }
}
